﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Collections;
using KraveDAL;
using KraveEntities;

public partial class adminViewEvent : System.Web.UI.Page
{
    public ArrayList al;
    
    protected void Page_Load(object sender, EventArgs e)
    {
        ReservationDAL rd = new ReservationDAL();
        al = new ArrayList();
        al = rd.RetrieveAll();
        
    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        int id = Convert.ToInt32(TextBox1.Text);
        Response.Redirect("adminViewEventDetail.aspx?id=" + id + "");
    }
    protected void Button2_Click(object sender, EventArgs e)
    {
        ClientScript.RegisterStartupScript(this.GetType(), "PrintOperation", "printing()", true);

    }
}